package com.zj.sc8.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.central.common.entity.Result;
import lombok.extern.slf4j.Slf4j;

/**
 * @author zhaojin
 */
@Slf4j
public class BlockHandlerUtils {
    public static Result<String> loginBlockHandler(String userName, BlockException exception) {
        log.error("err:[{}]", exception);
        return Result.error(100010, "网络拥堵，请稍后再试。");
    }
}
